#ifndef _SIMPLE_SERVICE_H
#define _SIMPLE_SERVICE_H

#include "FrameworkPublic.h"
#include "Service.h"

BEGIN_NAME_SPACE_OSGI

class TESTBUNDLEAPI SimpleService : public Service {
protected:
	int m_RefCount;

public:
	virtual ~SimpleService() {}
	virtual int AddRef() {
		++m_RefCount;
		return m_RefCount;
	}
	virtual int Release() {
		--m_RefCount;
		if( m_RefCount==0 )
			delete this;
		return m_RefCount;
	}
    virtual int Add( int a, int b);
};

END_NAME_SPACE_OSGI

#endif //_SIMPLE_SERVICE_H